#include "sdf.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
    void **pdh;
    pdh=(void **)malloc(20);
    int ret;
    ret = SDF_OpenDevice(pdh);
    if(ret != SDR_OK)
    {
        printf("OpenDevice Failed!");
    }
    else
    {
        printf("OpenDevice Successed!");
    }
    DEVICEINFO a;
    ret = SDF_GetDeviceInfo(*pdh,&a);
    if(ret != SDR_OK)
    {
        printf("GetDeviceInfo Failed!");
    }
    else
    {
        printf("GetDeviceInfo Successed!");
    }
    printf("DeviceName:%s\n",a.DeviceName);
    printf("DeviceVersion:%d\n",a.DeviceVersion);
    ret = SDF_CloseDevice(*pdh);
    if(ret != SDR_OK)
    {
        printf("CloseDevice Failed!");
    }
    else
    {
        printf("CloseDevice Successed!");
    }
}
